package labs;

import java.util.Scanner;

public class Lab31 {

    public static void main(String[] args) {
        
        Scanner scanner = new Scanner(System.in);
        
        System.out.print("Valor 1: ");
        String v1 = scanner.nextLine();
        
        System.out.print("Valor 2: ");
        String v2 = scanner.nextLine();
        
        scanner.close();
        
        Double x1 = Double.valueOf(v1);
        Double x2 = Double.valueOf(v2);

        System.out.println("sum: " + (x1 + x2));
        System.out.println("res: " + (x1 - x2));
        System.out.println("mul: " + (x1 * x2));
        System.out.println("div: " + (x1 / x2));
    }
}

